package com.castle.fortress.admin.orders.entity;

import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import java.util.Date;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.*;
import lombok.EqualsAndHashCode;
import com.castle.fortress.admin.core.entity.BaseEntity;
/**
 * 优惠券领取记录 实体类
 *
 * @author whc
 * @since 2023-01-06
 */
@Data
@TableName("sale_coupon_data")
@EqualsAndHashCode(callSuper = true)
public class SaleCouponDataEntity extends BaseEntity  {
	private static final long serialVersionUID = 1L;
	/**
	 * 会员
	*/
	@JsonSerialize(using = ToStringSerializer.class)
	private Long memberId;
	/**
	 * 优惠券
	*/
	@JsonSerialize(using = ToStringSerializer.class)
	private Long couponId;
	/**
	 * 获得方式
	*/
	private Integer getType;
	/**
	 * 使用时间
	*/
	private Date useTime;
	/**
	 * 获取时间
	*/
	private Date getTime;
	/**
	 * 订单编号
	*/
	private String orderSn;
	/**
	 * 生效时间(什么时候生效)
	*/
	private Date effectiveTime;
	/**
	 * 到期时间
	*/
	private Date overdueTime;
	/**
	 * 支付类型
	*/
	private Integer payType;
	/**
	 * 支付余额数量(弃用)
	*/
	private Integer payNumber;
	/**
	 * 支付积分数量
	*/
	private Integer pointNumber;

}
